package cn.hy.tiny.demo.parse;

import cn.hy.tiny.demo.core.Configuration;

import java.sql.ResultSet;

/**
 * @Author huang.xy
 * @Description TODO
 */
public class ParameterMapping {

    private String property;
    private String expression;

    private ParameterMapping() {
    }

    public static class Builder {

        private final ParameterMapping parameterMapping = new ParameterMapping();

        public Builder( String property) {
            parameterMapping.property = property;

        }

        public Builder expression(String expression) {
            parameterMapping.expression = expression;
            return this;
        }

        public ParameterMapping build() {
            return parameterMapping;
        }
    }

    public String getProperty() {
        return property;
    }


    /**
     * Expression 'Not used'.
     *
     * @return the expression
     */
    public String getExpression() {
        return expression;
    }

}
